import request from '../index';

const marketUrl = '/marketing-server';

// 查询弹窗广告
export const queryPopAdvertise = (params: any) => {
  return request({
    url: `${marketUrl}/advertApp/queryPopAdvertise`,
    params: params,
    noLoading: true,
  });
};

// 查询地图页-文字广告
export const queryHomePageAdvertise = (params: any) => {
  return request({
    url: `${marketUrl}/advertApp/queryHomePageAdvertise`,
    params: params,
    noLoading: true,
  });
};

// 查询小程序充电页广告
export const queryChargingAdvertise = (params: any) => {
  return request({
    url: `${marketUrl}/advertApp/queryChargingAdvertise`,
    params: params,
    noLoading: true,
  });
};

// 查询小程序客服中心页广告
export const queryCustomerAdvertise = (params: any) => {
  return request({
    url: `${marketUrl}/advertApp/queryCustomerAdvertise`,
    params: params,
    noLoading: true,
  });
};